package com.example.bootstudy.controller;

import com.example.bootstudy.bean.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author XiongJianLin
 * @date Created in 2022/5/7 17:37
 */
@RestController
public class mainController {
    @Autowired
    Car car;

    @GetMapping("car")
    public Car myCarConf(){
        return car;
    }
}
